package com.online.onlineshop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.online.onlineshop.entity.Comment;
import com.online.onlineshop.vo.CommentParamVo;
import com.online.onlineshop.vo.CommentVo;
import com.online.onlineshop.vo.ProdCommentVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author zihao.wang1
 * @date 2022/4/25
 */
@Repository
public interface CommentMapper extends BaseMapper<Comment> {
    IPage<CommentVo> commentPageList(IPage<CommentVo> page , @Param("commentParamVo") CommentParamVo commentParamVo);

    List<ProdCommentVO> selectVoList(@Param("pid") Integer pid);

}
